kexec: propagate ENOMEM result in error handling
authorMatthew Daley <mattd@bugfuzz.com>
Tue, 1 Apr 2014 14:48:02 +0000 (16:48 +0200)
committerJan Beulich <jbeulich@suse.com>
Tue, 1 Apr 2014 14:48:02 +0000 (16:48 +0200)
commit66c6349265d6536d0b77cd958ee3e5074e86233a
tree057f5580b7130cadc2fbeea30ae060ad9f3c3ce0
parent7b0e1a5913a506ee8194035af0317118d6258a05
kexec: propagate ENOMEM result in error handling

...otherwise if kimage_alloc_control_page fails (presumably due to
out-of-memory; see the invocation just before this one), the caller of
do_kimage_alloc will think the call was successful.

Signed-off-by: Matthew Daley <mattd@bugfuzz.com>
Reviewed-by: David Vrabel <david.vrabel@citrix.com>
xen/common/kimage.c